infix (elem), infix ∈

Documentation for infix (elem), infix ∈ assembled from the following types:

language documentation Sets, bags, and mixes

From Sets, bags, and mixes

(Sets, bags, and mixes) infix (elem), infix ∈

Returns True if $a is an element of $b, else False. More information, Wikipedia definition.

language documentation Operators

From Operators

(Operators) infix (elem), infix ∈

multi sub infix:<(elem)>($a,$b --> Bool:D)

Membership operator.

Returns True if $a is an element of $b.

say 2 (elem) (123); # OUTPUT: «True␤» 
say 4  (123);      # OUTPUT: «False␤» 

Since release 2020.05, ∊ is an alias for this operator.